<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SimpleWindow: Animation.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SimpleWindow
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_animation_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">Animation.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span> </div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;Control.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;CommCtrl.h&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span> </div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">namespace </span>sw</div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno">    7</span>{</div>
<div class="foldopen" id="foldopen00011" data-start="{" data-end="};">
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html">   11</a></span>    <span class="keyword">class </span><a class="code hl_class" href="classsw_1_1_animation.html">Animation</a> : <span class="keyword">public</span> <a class="code hl_class" href="classsw_1_1_control.html">Control</a></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno">   12</span>    {</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno">   13</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a6a8cc6df7908f9a13452b92ffa8fe391">   17</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_property.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_animation.html#a6a8cc6df7908f9a13452b92ffa8fe391">Center</a>;</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a084a77c1ced36701c01206706cb5c153">   22</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_property.html">Property&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_animation.html#a084a77c1ced36701c01206706cb5c153">AutoPlay</a>;</div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a2b255ea3d4b90630726ecb47b1b08eb1">   27</a></span>        <span class="keyword">const</span> <a class="code hl_class" href="classsw_1_1_read_only_property.html">ReadOnlyProperty&lt;bool&gt;</a> <a class="code hl_variable" href="classsw_1_1_animation.html#a2b255ea3d4b90630726ecb47b1b08eb1">IsPlaying</a>;</div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keyword">public</span>:</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a68db7dd5ef40dbc22e937688635cf23d">   33</a></span>        <a class="code hl_function" href="classsw_1_1_animation.html#a68db7dd5ef40dbc22e937688635cf23d">Animation</a>();</div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a90c3aeb9455da3811b8beb83ae6bfdd4">   41</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_animation.html#a90c3aeb9455da3811b8beb83ae6bfdd4">Open</a>(HINSTANCE hInstance, <span class="keywordtype">int</span> resourceId);</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a21c33940b42065ab2b1ada5d919a8bb1">   48</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_animation.html#a21c33940b42065ab2b1ada5d919a8bb1">Open</a>(<span class="keyword">const</span> std::wstring &amp;fileName);</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a40bbfb917a6cc8c8288898a69a5dbedd">   55</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_animation.html#a40bbfb917a6cc8c8288898a69a5dbedd">Open</a>(<span class="keyword">const</span> <span class="keywordtype">wchar_t</span> *fileName);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span> </div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#aee480d333fe124e06cf43bc4acf3a1cb">   64</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_animation.html#aee480d333fe124e06cf43bc4acf3a1cb">Play</a>(<span class="keywordtype">int</span> times, <span class="keywordtype">int</span> beginFrame, <span class="keywordtype">int</span> endFrame);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno">   65</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a041e1a6e6614fdcadd5606a17e29f6b1">   71</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_animation.html#a041e1a6e6614fdcadd5606a17e29f6b1">Play</a>(<span class="keywordtype">int</span> times = -1);</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno">   72</span> </div>
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classsw_1_1_animation.html#a257e02c8513fdb634abbf157c02ae081">   77</a></span>        <span class="keywordtype">bool</span> <a class="code hl_function" href="classsw_1_1_animation.html#a257e02c8513fdb634abbf157c02ae081">Stop</a>();</div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno">   78</span>    };</div>
</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno">   79</span>}</div>
<div class="ttc" id="aclasssw_1_1_animation_html"><div class="ttname"><a href="classsw_1_1_animation.html">sw::Animation</a></div><div class="ttdoc">动画控件，仅支持无音频的avi动画</div><div class="ttdef"><b>Definition</b> Animation.h:12</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a041e1a6e6614fdcadd5606a17e29f6b1"><div class="ttname"><a href="classsw_1_1_animation.html#a041e1a6e6614fdcadd5606a17e29f6b1">sw::Animation::Play</a></div><div class="ttdeci">bool Play(int times=-1)</div><div class="ttdoc">播放动画</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a084a77c1ced36701c01206706cb5c153"><div class="ttname"><a href="classsw_1_1_animation.html#a084a77c1ced36701c01206706cb5c153">sw::Animation::AutoPlay</a></div><div class="ttdeci">const Property&lt; bool &gt; AutoPlay</div><div class="ttdoc">是否在打开avi文件后自动播放</div><div class="ttdef"><b>Definition</b> Animation.h:22</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a21c33940b42065ab2b1ada5d919a8bb1"><div class="ttname"><a href="classsw_1_1_animation.html#a21c33940b42065ab2b1ada5d919a8bb1">sw::Animation::Open</a></div><div class="ttdeci">bool Open(const std::wstring &amp;fileName)</div><div class="ttdoc">从本地文件打开avi动画</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a257e02c8513fdb634abbf157c02ae081"><div class="ttname"><a href="classsw_1_1_animation.html#a257e02c8513fdb634abbf157c02ae081">sw::Animation::Stop</a></div><div class="ttdeci">bool Stop()</div><div class="ttdoc">停止播放</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a2b255ea3d4b90630726ecb47b1b08eb1"><div class="ttname"><a href="classsw_1_1_animation.html#a2b255ea3d4b90630726ecb47b1b08eb1">sw::Animation::IsPlaying</a></div><div class="ttdeci">const ReadOnlyProperty&lt; bool &gt; IsPlaying</div><div class="ttdoc">动画是否正在播放</div><div class="ttdef"><b>Definition</b> Animation.h:27</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a40bbfb917a6cc8c8288898a69a5dbedd"><div class="ttname"><a href="classsw_1_1_animation.html#a40bbfb917a6cc8c8288898a69a5dbedd">sw::Animation::Open</a></div><div class="ttdeci">bool Open(const wchar_t *fileName)</div><div class="ttdoc">从本地文件打开avi动画，传入nullptr可以关闭打开的动画</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a68db7dd5ef40dbc22e937688635cf23d"><div class="ttname"><a href="classsw_1_1_animation.html#a68db7dd5ef40dbc22e937688635cf23d">sw::Animation::Animation</a></div><div class="ttdeci">Animation()</div><div class="ttdoc">初始化动画控件</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a6a8cc6df7908f9a13452b92ffa8fe391"><div class="ttname"><a href="classsw_1_1_animation.html#a6a8cc6df7908f9a13452b92ffa8fe391">sw::Animation::Center</a></div><div class="ttdeci">const Property&lt; bool &gt; Center</div><div class="ttdoc">是否将动画居中显示</div><div class="ttdef"><b>Definition</b> Animation.h:17</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_a90c3aeb9455da3811b8beb83ae6bfdd4"><div class="ttname"><a href="classsw_1_1_animation.html#a90c3aeb9455da3811b8beb83ae6bfdd4">sw::Animation::Open</a></div><div class="ttdeci">bool Open(HINSTANCE hInstance, int resourceId)</div><div class="ttdoc">从指定模块中打开avi动画</div></div>
<div class="ttc" id="aclasssw_1_1_animation_html_aee480d333fe124e06cf43bc4acf3a1cb"><div class="ttname"><a href="classsw_1_1_animation.html#aee480d333fe124e06cf43bc4acf3a1cb">sw::Animation::Play</a></div><div class="ttdeci">bool Play(int times, int beginFrame, int endFrame)</div><div class="ttdoc">播放动画</div></div>
<div class="ttc" id="aclasssw_1_1_control_html"><div class="ttname"><a href="classsw_1_1_control.html">sw::Control</a></div><div class="ttdoc">控件</div><div class="ttdef"><b>Definition</b> Control.h:11</div></div>
<div class="ttc" id="aclasssw_1_1_property_html"><div class="ttname"><a href="classsw_1_1_property.html">sw::Property</a></div><div class="ttdoc">属性</div><div class="ttdef"><b>Definition</b> Property.h:127</div></div>
<div class="ttc" id="aclasssw_1_1_read_only_property_html"><div class="ttname"><a href="classsw_1_1_read_only_property.html">sw::ReadOnlyProperty</a></div><div class="ttdoc">只读属性</div><div class="ttdef"><b>Definition</b> Property.h:16</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_01fcd3835fb4e7d9331b722d86291b65.html">sw</a></li><li class="navelem"><a class="el" href="dir_ed5f6ece24ffcc4307a76d27c2494db3.html">inc</a></li><li class="navelem"><b>Animation.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
